function addhao(ha){
		confirm(ha);	
		var i="#addhao"+ha
			var id="id="+ha+"&pro=add"
			 $(i).load("BookManage",id);
			
		} 



jQuery(document).ready(function() {
/*	$.getJSON("BookManage?pro=show",null,function show(data){
		console.log(data);	
		var $newsList = $("#id").empty();
		
		for(var i =0; i < data.length; i++){
			$newsList.append("<tr><td>"+data.b_name+"</td>" +
					"<td>"+data.b_author+"</td>" +
					"<td>"+data.b_time+"</td>" +
					"<td>"+data.b_type+"</td>" +
					"<td><a href=''></td></tr>");
		}
	});
	
	show(data);
	*/
	function show(res){
		$(res).each(function(){
			var tr = "<tr><td>"+res.b_name+"</td>" +
					"<td>"+res.b_author+"</td>" +
					"<td>"+res.b_time+"</td>" +
					"<td>"+res.b_type+"</td>" +
					"<td><a href=''></td></tr>";
			$("#tb").append(tr)
		});
	}
	function initBook(){
		$.getJSON("BookManageServlet?pro=show",null,show);
	}
	
	initBook();
	
	
	
});